package com.cyh.ebptpubjar.common.ebptjasypt;

import com.ulisesbocchio.jasyptspringboot.EncryptablePropertyDetector;
import com.ulisesbocchio.jasyptspringboot.EncryptablePropertyResolver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName:   EbptJasyptConfig
 * @Description: 自定义加密配置类
 * @Author:      cyh
 * @CreateDate:  2022/1/12 21:12
 */
@Configuration
public class EbptJasyptConfig {

    @Bean(name = "encryptablePropertyDetector")
    public EncryptablePropertyDetector encryptablePropertyDetector() {
        return new EbptEncryptablePropertyDetector();
    }

    @Bean(name="encryptablePropertyResolver")
    public EncryptablePropertyResolver encryptablePropertyResolver() {
        return new EbptEncryptablePropertyResolver();
    }
}
